package per.chao.mqtt.domain.interfaces.repo;

/**
 * Description:
 *
 * @author W.Chao
 * @date 2021/6/20 16:54
 **/
public abstract class BaseSubscribeRepo<V> extends BaseRepo<V>{

	@Override
	@Deprecated
	public void put(String s, V v) {
		// do nothing
	}

	@Override
	@Deprecated
	public V get(String s) {
		return null;
	}

	@Override
	@Deprecated
	public boolean containsKey(String s) {
		return false;
	}

	public abstract void put(String topic, String clientId, V v);

	public abstract V get(String topic, String clientId);

	public abstract void remove(String topic, String clientId);

	public abstract boolean containsKey(String topic, String clientId);
}
